package com.nut.lmsc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nut.lmsc.common.BaseEntity;
import lombok.Data;

import java.util.List;

@Data
@TableName("sys_menu")
public class SysMenu extends BaseEntity {

    private Integer id;
    //父id
    private Integer pid;
    //菜单标题
    private String title;
    //组件名称
    private String name;
    //组件
    private String component;
    //路由
    private String route;
    //权限
    private String permission;
    //资源类型 0菜单 1按钮权限
    private Integer type;
    //排序
    private Integer sort;
    //菜单图标
    private String icon;
    //外链地址
    private String path;
    //是否为外链 0否 1是
    private Integer isOut;
    //子菜单数量
    private Integer subCount;

    @TableField(exist = false)
    private List<SysMenu> child;

}
